package bookstudytest.threadtest;

import java.io.File;
import java.io.FileOutputStream;

/**
 * Created by swordbone on 2017/12/21.
 */
public class Test {
    public static void main(String args[]) throws Exception {
//        创建新的文件夹new
        new File("C:/NEW/").mkdir();
        File file = new File("C:/NEW/hello.txt");
        FileOutputStream fileOutputStream = new FileOutputStream(file);
        byte[] bytes = new byte[]{'h','e','l','l','o',' ','W','o','r','l','d'};
        fileOutputStream.write(bytes);
    }
}
